{% extends "default/layout.html" %}
{% load pagination %}
{% load news %}

{% if category %}
    {% block head_title %}Регистрация на сайте{% endblock %}
{% endif %}

{% block content %}
    <h1>Регистрация на сайте</h1>
    <form class="float-form" action="" method="post">
        {% csrf_token %}
        <div>
            {{ form.username.errors }}
            <label for="id_username">Ник:</label>
            <input id="id_username" type="text" name="username" maxlength="64" class="input plus-block" value="{{ form.username.value }}" />
        </div>
        <div>
            {{ form.email.errors }}
            <label for="id_email">Email:</label>
            <input id="id_email" type="text" name="email" maxlength="64" class="input plus-block" value="{{ form.email.value }}" />
        </div>
        <div>
            {{ form.password.errors }}
            <label for="id_password">Пароль:</label>
            <input id="id_password" type="password" name="password" maxlength="64" class="input plus-block" value="{{ form.password.value }}" />
        </div>
        <div>
            {{ form.repeat_password.errors }}
            <label for="id_repeat_password">Повторите пароль:</label>
            <input id="id_repeat_password" type="password" name="repeat_password" maxlength="64" class="input plus-block" value="{{ form.repeat_password.value }}" />
        </div>
        <div>
            <label>&nbsp;</label>
            <input type="submit" value="Зарегистрироваться" class="button submit plus-block" />
        </div>
    </form>
{% endblock %}